package routers

import (
	"github.com/gin-gonic/gin"
	"weibo-kit/handlers"
)

func Routers() *gin.Engine {
	r := gin.Default()
	r.POST("login", handlers.Login)
	r.GET("roleList", handlers.Role)
	r.GET("nodelist", handlers.Nodes)
	r.GET("list", handlers.List)
	r.GET("detail", handlers.Detail)
	return r
}
